package com.zyz.system.model.sysuser.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SysUserSaveDTO {
    @Schema(description = "用户账号")
    @NotBlank(message = "用户账号不能为空") // 不能是空格也不能是null
    @Size(max = 15, min = 2,message = "用户名长度不能少于2位，大于15位")
    private String userAccount;

    @NotBlank(message = "用户密码不能为空")
    @Size(max = 10, min = 6,message = "密码长度不能少于6位，大于10位")
    @Schema(description = "用户密码")
    private String password;

    @NotBlank(message = "用户名不能为空")
    private String nickName;
}
